/*
 * 文件名：Result.java
 * 版权：Copyright by www.wootide.com
 * 描述：
 * 修改人：ozm
 * 修改时间：2013-1-28
 * 跟踪单号：
 * 修改单号：
 * 修改内容：
 */
package com.wootide.cms.common;

import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
/**
 * 操作结果对象
 * 〈一句话功能简述〉
 * 〈功能详细描述〉
 * @author ozm
 * @version 2013-1-28
 * @see Result
 * @since 2013-1-28下午2:24:42
 */
public class Result
{
    // 结果码
    private int resultCode;

    // 描述信息
    private String resultMsg;

    // 返回的结果信息集
    @SuppressWarnings("rawtypes")
    private List resultList;

    //返回的pojo
    private Object resultPojo;
    
    //删除失败的记录数
    private int delErrorNum = 0; 
    
    // 修改前记录
    private Object oldObject;
    
    // 修改后记录
    private Object newObject;

    public String toString()
    {
        return new ToStringBuilder(this).append("resultCode", resultCode)
                .append("resultMsg", resultMsg)
                .append("resultList", resultList).append("resultPojo",
                        resultPojo).toString();
    }
    
    public int getResultCode()
    {
        return resultCode;
    }

    public void setResultCode(int resultCode)
    {
        this.resultCode = resultCode;
    }

    public String getResultMsg()
    {
        return resultMsg;
    }

    public void setResultMsg(String resultMsg)
    {
        this.resultMsg = resultMsg;
    }

    @SuppressWarnings("rawtypes")
    public List getResultList()
    {
        return resultList;
    }

    @SuppressWarnings("rawtypes")
    public void setResultList(List resultList)
    {
        this.resultList = resultList;
    }

    public Object getResultPojo()
    {
        return resultPojo;
    }

    public void setResultPojo(Object resultPojo)
    {
        this.resultPojo = resultPojo;
    }

    public int getDelErrorNum()
    {
        return delErrorNum;
    }

    public void setDelErrorNum(int delErrorNum)
    {
        this.delErrorNum = delErrorNum;
    }

    public Object getOldObject()
    {
        return oldObject;
    }

    public void setOldObject(Object oldObject)
    {
        this.oldObject = oldObject;
    }

    public Object getNewObject()
    {
        return newObject;
    }

    public void setNewObject(Object newObject)
    {
        this.newObject = newObject;
    }
}
